package com.deyou.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.deyou.R;
import com.deyou.base.BaseActivity;
import com.deyou.util.AndroidUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginOrRegistActivity extends BaseActivity {

    @BindView(R.id.iv_cancel)
    ImageView ivCancel;
    @BindView(R.id.btn_goto_regist)
    TextView btnGotoRegist;
    @BindView(R.id.btn_goto_login)
    TextView btnGotoLogin;
    @BindView(R.id.iv_login_by_wechat)
    ImageView ivLoginByWechat;
    @BindView(R.id.activity_login_or_regist)
    RelativeLayout activityLoginOrRegist;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login_or_regist);
        ButterKnife.bind(this);
    }

    @Override
    protected boolean translucentStatusBar() {
        return false;
    }

    @OnClick({R.id.iv_cancel, R.id.btn_goto_regist, R.id.btn_goto_login, R.id.iv_login_by_wechat, R.id.activity_login_or_regist})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_cancel:
                finish();
                break;
            case R.id.btn_goto_regist:
                AndroidUtils.startNextActivity(this, RegistActivity.class, null, false);
                break;
            case R.id.btn_goto_login:
                AndroidUtils.startNextActivity(this, LoginActivity.class, null, false);
                break;
            case R.id.iv_login_by_wechat:
                break;
            case R.id.activity_login_or_regist:
                break;
        }
    }
}
